<?php

namespace App\Models;

use App\Models\CommonModel as Model;

/**
 * Class UserTicketModel
 * @package App\Models
 * @version May 9, 2018, 1:33 pm UTC
 *
 * @property int user_id
 * @property int ticket_id
 * @property int city_id
 */
class CityModel extends Model
{
    public $table = 'cities';

    public $fillable = [
        'user_id',
        'ticket_id',
        'city_id',
        'code',
        'category_id',
        'status',
        'created_at',
        'updated_at',
    ];

    public $searchable = [
        'id',
        'cityid',
        'parent_id',
    ];

    public $changeable = [
        'status'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'user_id' => 'required|int',
        'ticket_id' => 'required|int',
        'city_id' => 'required|int'
    ];
}
